import unittest
import util
import sys

class CaseBase(unittest.TestCase):
    
    ## Class Method Section
    @classmethod
    def setUpClass(cls):
        util.logEnter(cls)
        cls.wbemConnect = util.wbemConnect()
        
        util.logExit(cls)
        
    @classmethod
    def tearDownClass(cls):
        util.logEnter(cls)
        
        util.logExit(cls)


    ## Test Case Setup and Teardown Section
    def setUp(self):
        util.logEnter(self)
        
        util.logExit(self)
        
    def tearDown(self):
        util.logEnter(self)
        
        util.logExit(self)
        
    
    def assertTrue(self, expr, failMsg, passMsg = None):
        if not expr:
            raise self.failureException(failMsg)
        if passMsg:
            print(passMsg)